<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true

	});
</script>
{{if $op=="new"}}
<h2 class="ico_page">Create NewsLetter</h2>
{{elseif $op=="update"}}
<h2 class="ico_page">Update NewsLetter</h2>
{{/if}}

<br/>
{{if $op=="new"}}
<form action="{{$base_index_url}}/newsl8r/admin/newsletter/create" method="post">
{{elseif $op=="update"}}
<form action="{{$base_index_url}}/newsl8r/admin/newsletter/update" method="post">
{{/if}}

    <table  width="98%">
        <tr>
            <td>Name:<br/>
                <input type="text" name="name" value="{{$letter->name}}"/> </td>
        </tr>
        <tr>
            <td>Description:<br/>
                <input type="text" name="desc" class="long" value="{{$letter->description}}"/> </td>
        </tr>
        <tr>
            <td valign="top">Email:<br/>            
                <textarea id="email_content" name="email_content" >{{$letter->content}}</textarea>
            </td>
        </tr>
        <tr>
            <td align="center">
                <br/>
                <input type="submit" value="Save" class="medium" />
                <input type="hidden" value="{{$letter->id}}" name="id" />
            </td>
        </tr>
    </table>
</form>
